#include "MarsPrecompile.h"

#include "MarsRenderResource.h"

using namespace Graphics;

void RenderResource::InitResource()
{
	if ( !m_bInitilaized )
	{
		if ( RenderInterface::GIsRenderInterfaceInit )
		{
			InitDynamicResource();
			InitStaticResource();
		}
		m_bInitilaized = TRUE;
	}
}

void RenderResource::ReleaseResource()
{
	if ( m_bInitilaized )
	{
		if ( RenderInterface::GIsRenderInterfaceInit )
		{
			ReleaseStaticResource();
			ReleaseDynamicResource();
		}
		m_bInitilaized = FALSE;
	}
}